package bit.springblogdemo.service;

import bit.springblogdemo.pojo.dataobject.BlogInfo;
import bit.springblogdemo.pojo.request.AddBlogRequest;
import bit.springblogdemo.pojo.request.UpdateBlogRequest;
import bit.springblogdemo.pojo.response.BlogInfoResponse;


import java.util.List;



public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    BlogInfo getBlogInfo(Integer blogId);

    Boolean addBlog(AddBlogRequest addBlogRequest);

    Boolean updateBlog(UpdateBlogRequest updateBlogRequest);

    Boolean deleteBlog(Integer blogId);
}
